<html>
	<head>
		<title>{{thread.title}}</title>
	</head>
	
	<body>
		<table id={{thread.thread_id}} border=1>
			<tr>
				<td>thread id</td>
				<td id="thread_id">{{thread.thread_id}}</td>
			</tr>
			<tr>
				<td>title</td>
				<td id="title">{{thread.title}}</td>
			</tr>
			<tr>
				<td>pages</td>

				<!--
				<td id="pages"><a href="/query_page?thread_id={{thread.thread_id}}">pages</a></td>
				-->
				<td id="pages">
				    <table id="pages" border=1>
				    	<tr>
				    		<td>seq</td>
				    		<td>url</td>
				    	</tr>
				    	{% for url in thread.page_url %}
              			<tr>
							<td>{{ forloop.counter }}</td>
                  			<td>{{ url }}</td>
              			</tr>
              			{% endfor %}
	            		</table>
       			</td>
			</tr>
			<tr>
				<td>users</td>
				<td id="users"><a href="/query_thread_user?thread_id={{thread.thread_id}}">users</a></td>
			</tr> 
			<tr>
				<td>created</td>
				<td id="created">{{thread.created}}</td>
			</tr>

			<tr>
				<td>last change</td>
				<td id="last_change">{{thread.last_change}}</td>
			</tr>
			<tr>
				<td>status</td>
				<td id="status">{{thread.status}}</td>
			</tr>
		</table>
	</body>
</html>
	